<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class PunchCardRecord extends Model
{
    use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'punch_card_record';

    protected $guarded = [];

    public function users()
    {
        return $this->belongsTo(PunchCardUser::class, 'openid', 'openid');
    }
}
